package com.jy.rhin.infra.cda.dao.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.jy.rhin.infra.cda.dao.ErTongJKTJDao;
import com.jy.rhin.infra.cda.ertong.LiangSuiRTJKTJVO;
import com.jy.rhin.infra.cda.ertong.SanSuiRTJKTJVO;
import com.jy.rhin.infra.cda.ertong.YISUIETJKTJVO;
import com.jy.rhin.infra.cda.mapper.ErTongJKTJMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service
public class ErTongJKTJDaoImpl implements ErTongJKTJDao {
    @Resource
    private ErTongJKTJMapper erTongJKTJMapper;


    @Override
    public YISUIETJKTJVO get1ByBH(String id, String fuWuJGBH) {
        QueryWrapper<YISUIETJKTJVO> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("a.ERTONGJKJCJLBDBH", id);
        return erTongJKTJMapper.getYiSuiET(queryWrapper);
    }

    @Override
    public LiangSuiRTJKTJVO get2ByBH(String id, String fuWuJGBH) {
        QueryWrapper<LiangSuiRTJKTJVO> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("a.ERTONGJKJCJLBDBH", id);
        return erTongJKTJMapper.getLiangSuiET(queryWrapper);
    }

    @Override
    public SanSuiRTJKTJVO get3ByBH(String id, String fuWuJGBH) {
        QueryWrapper<SanSuiRTJKTJVO> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("a.ERTONGJKJCJLBDBH", id);
        return erTongJKTJMapper.getSanSuiET(queryWrapper);
    }
}
